import request from '@/utils/request'

// 查询水量监测列表
export function listQuantity(query) {
  return request({
    url: '/hma/quantity/list',
    method: 'get',
    params: query
  })
}

// 查询水量监测详细
export function getQuantity(readingId) {
  return request({
    url: '/hma/quantity/' + readingId,
    method: 'get'
  })
}

// 新增水量监测
export function addQuantity(data) {
  return request({
    url: '/hma/quantity',
    method: 'post',
    data: data
  })
}

// 修改水量监测
export function updateQuantity(data) {
  return request({
    url: '/hma/quantity',
    method: 'put',
    data: data
  })
}

// 删除水量监测
export function delQuantity(readingId) {
  return request({
    url: '/hma/quantity/' + readingId,
    method: 'delete'
  })
}
